package com.ks.user.dao;

import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.ks.user.entity.PowerResurce;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.ks.user.entity.vo.PowerResurceRelation;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;



import java.util.List;

/**
 * <p>
 * 权限资源表 Mapper 接口
 * </p>
 *
 * @author kingdee123
 * @since 2020-11-30
 */
public interface PowerResurceMapper extends BaseMapper<PowerResurce> {
 //   @Select("SELECT a.*,b.iAppCode,b.iAppName,b.iIcon,b.iServiceUrlRoot,b.iPageUrl,b.cAppType,b.cAppScope,b.sAppState FROM power_resurce a LEFT JOIN ap_base b on a.cApId = b.ID ${ew.customSqlSegment}")
    List<PowerResurceRelation>  PowerResurceRelationInfo(Page page, @Param("powerResurce") PowerResurce powerResurce);

    int PowerResurceRelationCount(@Param("powerResurce") PowerResurce powerResurce);
}
